#if !defined(AFX_EM9118DLG_H__6649F5CA_3677_4B97_A3F4_C6C5848BA5D3__INCLUDED_)
#define AFX_EM9118DLG_H__6649F5CA_3677_4B97_A3F4_C6C5848BA5D3__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Em9118Dlg.h : header file
//
#include <afxmt.h>
#include "../tools/ZT_Type.h"
#include "../tools/EM9106.h"
#include "afxcmn.h"
#include "AdDlg.h"
#include "DaDlg.h"
#include "IoDlg.h"

/////////////////////////////////////////////////////////////////////////////
// CEm9118Dlg dialog

class CEm9118Dlg : public CDialog
{
// Construction
public:
	CEm9118Dlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CEm9118Dlg();

// Dialog Data
	//{{AFX_DATA(CEm9118Dlg)
	enum { IDD = IDD_EM9118_DEMO_VC60_DIALOG };
	CString	_strIP;
	//}}AFX_DATA

	EM9106_DevPara* _hDev;
	CTabCtrl _tabCtrl;
	std::vector<CWnd*> _vTAbDlg;
	CAdDlg _dlgAd;
	CDaDlg _dlgDa;
	CIoDlg _dlgIo;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CEm9118Dlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CEm9118Dlg)
	virtual BOOL OnInitDialog();
	void InitTabCtrl();
	afx_msg void OnConnect();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnTcnSelchangeTab1(NMHDR *pNMHDR, LRESULT *pResult);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

public:
	void SetErrorInfo( const CString& info, I32 errCode );
	void SetInfo( const CString& info, bool bClear = false );
	CRichEditCtrl _info;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_EM9118DLG_H__6649F5CA_3677_4B97_A3F4_C6C5848BA5D3__INCLUDED_)
